<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" isELIgnored="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<div>
    <spring:message code="portal.webapp.label.reader"/>
</div>
<form:form modelAttribute="reader">
    <form:hidden path="id"/>
    <form:hidden path="createdDate"/>
    <form:hidden path="lastUpdateDate"/>
    <table>
        <tr>
            <td><spring:message code="portal.webapp.label.username"/></td>
            <td><form:input path="username"/></td>
        </tr>
        <tr>
            <td><spring:message code="portal.webapp.label.password"/></td>
            <td><form:password path="password"/></td>
        </tr>
        <tr>
            <td><spring:message code="portal.webapp.label.firstName"/></td>
            <td><form:input path="firstName"/> <form:errors path="firstName"/></td>
        </tr>
        <tr>
            <td><spring:message code="portal.webapp.label.lastName"/></td>
            <td><form:input path="lastName"/> <form:errors path="lastName"/></td>
        </tr>
        <tr>
            <td><spring:message code="portal.webapp.label.groups"/></td>
            <td><form:select path="group" items="${groups}" itemValue="id" itemLabel="name"/></td>
        </tr>
        <%--<tr>--%>
            <%--<td><spring:message code="portal.webapp.label.comments"/></td>--%>
            <%--<td><form:select path="comments" multiple="true" items="${allComments}" itemValue="id" itemLabel="title"/></td>--%>
        <%--</tr>--%>
        <tr>
            <td><input type="reset"/></td>
            <td><input type="submit"/></td>
        </tr>
    </table>
</form:form>